'use strict';

/** 写接口的
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);
  // router.resources('users', '/users', controller.users);
  //路由的名字,网址,相对的页面
  router.resources('users', '/users', controller.users);
  router.resources('wakuang', '/wakuang', controller.wakuang);
  
};
